#include <iostream>
#include <string>
#include <version>
#include <algorithm>
#include <vector>
using namespace std;

struct stu
{
public:
    string name;
    string skill;
    long int ATK;
    int id;

public:
    stu() {}
    stu(string name , string skill ,long int ATK ,int id) : name(name) ,skill(skill) , ATK(ATK) ,id(id) {};

public:
    bool operator==(stu val)
    {
        return this->name == val.name;
    }

};

void printf_func(stu val)
{
    stu temp = val;
    cout <<"姓名:" << temp.name <<"\t技能:" <<temp.skill << "\t\t战力:" << temp.ATK << "\t学号:"<< temp.id <<endl;
}

stu transfrom_func(stu val)
{
    return val;
}

int main(int argc, char const *argv[])
{
    vector<stu> s1 ;
    s1.push_back(stu("唐三","蓝银缠绕",100 ,1));
    s1.push_back(stu("萧炎","佛怒火莲",500 ,2));
    s1.push_back(stu("林动","大荒囚天指",1550 ,3));
    s1.push_back(stu("牧尘","灵阵,起",1005 ,4));
    s1.push_back(stu("陈平安","妈来!!!",1000 ,5));
    s1.push_back(stu("荒天帝","六道轮回",9999 ,6));

    stu s2;
    s2.name = "唐三";
    auto it = find(s1.begin(),s1.end() , s2);

    cout << it->name << endl;

    
    return 0;
}
